package com.ruyuan.eshop.diplomacy.api;

import com.ruyuan.eshop.common.core.JsonResult;
import com.ruyuan.eshop.diplomacy.domain.dto.ProductCollectDTO;
import com.ruyuan.eshop.diplomacy.domain.dto.ProductDetailDTO;
import com.ruyuan.eshop.diplomacy.domain.query.ProductCollectQuery;
import com.ruyuan.eshop.diplomacy.domain.query.ProductDetailQuery;

import java.util.Map;

/**
 * 商品信息
 *
 * @author zhonghuashishan
 */
public interface ProductCollectApi {

    /**
     * 根据itemId或skuId获取商品信息
     *
     * @param productCollectQuery
     * @return com.ruyuan.eshop.common.core.JsonResult<com.ruyuan.eshop.diplomacy.domain.dto.ProductCollectDTO>
     * @author zhonghuashishan
     */
    JsonResult<Map<String, ProductCollectDTO>> getProductCollect(ProductCollectQuery productCollectQuery);

    /**
     * 根据skuId获取商品详情
     *
     * @param productDetailQuery
     * @return com.ruyuan.eshop.common.core.JsonResult<com.ruyuan.eshop.diplomacy.domain.dto.ProductCollectDTO>
     * @author zhonghuashishan
     */
    JsonResult<ProductDetailDTO> getProductDetail(ProductDetailQuery productDetailQuery);



}
